home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / Puzzle / cymin.swf / scripts / DefineButton2_65 / BUTTONCONDACTION on(release).as
Text File  |  2006-05-23  |  511b  |  32 lines

  1. on(release){
  2.    x = "1";
  3.    playingBest = "0";
  4.    noRestart = "0";
  5.    if(x < count + "1")
  6.    {
  7.       nextOne = eval("pattern" add x);
  8.       x += "1";
  9.       if(nextOne == "0")
  10.       {
  11.          gotoAndPlay(37);
  12.       }
  13.       if(nextOne == "1")
  14.       {
  15.          gotoAndPlay(41);
  16.       }
  17.       if(nextOne == "2")
  18.       {
  19.          gotoAndPlay(45);
  20.       }
  21.       if(nextOne == "3")
  22.       {
  23.          gotoAndPlay(49);
  24.       }
  25.    }
  26.    else
  27.    {
  28.       x = "1";
  29.       firstOne = "0";
  30.    }
  31. }
  32.